﻿using Pay.TO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.Data {
  /// <summary>
  /// token 提现记录
  /// </summary>
    public partial class TokenTransfer {
        public TokenTransfer() {
        }
        /// <summary>
        /// 提现id
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 提现商户id
        /// </summary>
        public long MerchantId { get; set; }
        /// <summary>
        /// 提现单号
        /// </summary>
        public string OrderNo { get; set; }
        /// <summary>
        /// 提现金额
        /// </summary>
        public decimal TransferAmount { get; set; }
        /// <summary>
        /// 实结金额＝提现金额-结算费
        /// </summary>
        public decimal Amount { get; set; }
        /// <summary>
        /// 状态：提现状态 0 待审核 1 已通过未付款 2已通过已付款 3 未通过,4 处理中
        /// </summary>
        public TokenTransferStatus Status { get; set; }
        /// <summary>
        /// 提现类型  1 分销收益 2 课程收益 3店铺收益
        /// </summary>
        public TokenTransferType TransferType { get; set; }
        /// <summary>
        /// 结算费
        /// </summary>
        public decimal SettleAmount { get; set; }
       /// <summary>
       /// 结算费率
       /// </summary>
       public decimal SettleRate { get; set; }
        /// <summary>
        /// 卡类型：0个人，1企业
        /// </summary>
        public int BusiType { get; set; }
        /// <summary>
        /// 开户银行
        /// </summary>
        public string BankName { get; set; }
        /// <summary>
        /// 省市区
        /// </summary>
        public string RegionName { get; set; }
        /// <summary>
        /// 支行详细地址
        /// </summary>
        public string BranchAddress { get; set; }
        /// <summary>
        /// 卡号
        /// </summary>
        public string AccountNo { get; set; }
        /// <summary>
        /// 开户姓名/公司名称
        /// </summary>
        public string AccountName { get; set; }
        /// <summary>
        /// 申请时间
        /// </summary>
        public long ApplyTime { get; set; }
        /// <summary>
        /// 失败信息
        /// </summary>
        public string Msg { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public long? AuditTime { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public long? AuditManageId { get; set; }
        /// <summary>
        /// 打款时间
        /// </summary>
        public long? PayTime { get; set; }
        /// <summary>
        /// 打款操作人
        /// </summary>
        public long? PayManageId { get; set; }
        /// <summary>
        /// 支付信息id
        /// </summary>
        public long? PayId { get; set; }
        /// <summary>
        /// 是否有风险
        /// </summary>
        public bool IsRisk { get; set; }
        /// <summary>
        /// 提现商户
        /// </summary>
        public virtual Merchant Merchant { get; set; }
        public virtual Manage AuditManage { get; set; }
        public virtual Manage PayManage { get; set; }
        public virtual PayInfo PayInfo { get; set; }
    }
}
